const publicPath = process.env.NODE_ENV === 'production' ? '/help/api/' : '/'
module.exports = {
    base: publicPath,
    themeConfig: {
        logo: 'http://thirdwx.qlogo.cn/mmopen/OAU4MWaK4ZbUh4OKRZOGkDAeWfF6lW6icjgCdRHPObScBSkyyfaXG6aGicgkQMWZPIesZbN4bBjY5wvcAwMw98ZCn3n8zc19Iz/132',
        nav: [
            { text: 'Home', link: '/' },
            { text: '指南', link: '/guide/' },
            {
                text: 'API',
                link: '/api/'
            },
            {
                text: 'table',
                link: '/models/'
            }
        ],
        lastUpdated: 'Last Updated',
        displayAllHeaders: true,
        collapsable: true,
        sidebar: {
            collapsable: true,


            '/guide/': [
                '',
            ],
            '/api/': [
                '',
                'v2',
                'v3',
                'v4',
                'v5',
                "阿里云接口",
                "微信公众号接口",
                "微信小程序接口",
                "百度云接口",
                '题库系统',
            ],
            '/models/': [
                '',
                'school',
            ],
        }
    },
    title: 'hterobot 接口文档',
    description: '官网接口文档',
    markdown: {
        lineNumbers: true
    },
    plugins: [
        '@vuepress/last-updated',
        {
            transformer: timestamp => new Date(timestamp).toLocaleDateString()
        }
    ],
    resolve: {
        alias: {
            '@alias': '/help/api/'
        }
    }
}